/**
 * Copyright &copy; 2015-2020 <a href="http://www.jeeplus.org/">JeePlus</a> All rights reserved.
 */
package com.jeeplus.modules.web.entity;

import com.alibaba.fastjson.annotation.JSONField;
import com.jeeplus.modules.sys.entity.User;
import org.hibernate.validator.constraints.Length;

import com.jeeplus.core.persistence.DataEntity;
import com.jeeplus.common.utils.excel.annotation.ExcelField;

/**
 * 预购开机Entity
 * @author rongjie
 * @version 2017-08-06
 */
public class WxCombination extends DataEntity<WxCombination> {

	private static final long serialVersionUID = 1L;
	private String money;		// 金额
	private String hour;		// 小时
	private String url;		// 封面
	private Integer type;
	private WxAgents agents;
	private String agentsId;
	private Integer deviceType;

	public WxCombination() {
		super();
		this.setIdType(IDTYPE_AUTO);
	}

	public WxCombination(String id){
		super(id);
	}

	@ExcelField(title="金额", align=2, sort=7)
	public String getMoney() {
		return money;
	}

	public void setMoney(String money) {
		this.money = money;
	}

	@ExcelField(title="小时", align=2, sort=8)
	public String getHour() {
		return hour;
	}

	public void setHour(String hour) {
		this.hour = hour;
	}

	@Length(min=1, max=999, message="封面长度必须介于 1 和 999 之间")
	@ExcelField(title="封面", align=2, sort=9)
	public String getUrl() {
		return url;
	}

	public void setUrl(String url) {
		this.url = url;
	}

	public WxAgents getAgents() {
		return agents;
	}

	public void setAgents(WxAgents agents) {
		this.agents = agents;
	}

	public String getAgentsId() {
		return agentsId;
	}

	public void setAgentsId(String agentsId) {
		this.agentsId = agentsId;
	}

	public Integer getType() {
		return type;
	}

	public void setType(Integer type) {
		this.type = type;
	}

	public Integer getDeviceType() {
		return deviceType;
	}

	public void setDeviceType(Integer deviceType) {
		this.deviceType = deviceType;
	}
}
